package com.wangsd.web.dao;

import com.wangsd.web.model.Watermeter;
import com.wangsd.web.model.WatermeterExample;
import com.wangsd.web.modelCustom.WatermeterCustom;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WatermeterMapper {
    int countByExample(WatermeterExample example);

    int deleteByExample(WatermeterExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Watermeter record);

    int insertSelective(Watermeter record);

    List<Watermeter> selectByExample(WatermeterExample example);

    Watermeter selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Watermeter record, @Param("example") WatermeterExample example);

    int updateByExample(@Param("record") Watermeter record, @Param("example") WatermeterExample example);

    int updateByPrimaryKeySelective(Watermeter record);

    int updateByPrimaryKey(Watermeter record);
        
    WatermeterCustom selectRoomAndWatermeterInfo(int roomId);
    
    Watermeter selectOldWatermeterInfo(int roomId);
    
    List<WatermeterCustom> selectAllWatermeterInfo(WatermeterCustom record);
    
    /**
	 * 
	 * Description: 当月水表只能抄一次
	 * @param watermeter
	 * @return
	 */
    List<Watermeter> selectWatermeterInfobyRoomId(WatermeterCustom watermeter);
    
}